import request from '@/utils/request'

// 查询用户电子卡列表
export function listAppUserElectronicCard(query) {
  return request({
    url: '/app/manager/appUserElectronicCard/list',
    method: 'get',
    params: query
  })
}

// 查询用户电子卡详细
export function getAppUserElectronicCard(id) {
  return request({
    url: '/app/manager/appUserElectronicCard/' + id,
    method: 'get'
  })
}

// 新增用户电子卡
export function addAppUserElectronicCard(data) {
  return request({
    url: '/app/manager/appUserElectronicCard',
    method: 'post',
    data: data
  })
}

// 修改用户电子卡
export function updateAppUserElectronicCard(data) {
  return request({
    url: '/app/manager/appUserElectronicCard',
    method: 'put',
    data: data
  })
}

// 删除用户电子卡
export function delAppUserElectronicCard(id) {
  return request({
    url: '/app/manager/appUserElectronicCard/' + id,
    method: 'delete'
  })
}
